.container {
    display: flex;
    height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}
.chat-section {
    flex: 0 0 30%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}
.chat-title {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.chat-subtitle {
    color: #666;
    font-size: 14px;
    opacity: 0.8;
}
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}
.chat-message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.user-message {
    justify-content: flex-end;
}
.ai-message {
    justify-content: flex-start;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    margin: 0 10px;
    flex-shrink: 0;
}
.user-avatar {
    background: linear-gradient(45deg, #667eea, #764ba2);
}
.ai-avatar {
    background: linear-gradient(45deg, #f093fb, #f5576c);
}
.chat-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}
.user-message .chat-content {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-bottom-right-radius: 5px;
}
.ai-message .chat-content {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
}
.message-text {
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-content .message-image {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 4px;
}
.chat-content .response-text {
    color: #409EFF;
    white-space: pre-wrap;
    margin-top: 10px;
}
.chat-input {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.display-section {
    flex: 0 0 65%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}
.display-control-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
}
.control-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.panel-title {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}
.control-panel-actions {
    text-align: center;
}
.display-header {
    text-align: center;
    margin-bottom: 5px;
}
.display-title {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}
.display-subtitle {
    color: #666;
    font-size: 14px;
    opacity: 0.8;
}
.chart-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.data-cards-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.data-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.data-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.data-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
}
.data-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.sub-data-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}
.sub-data-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dynamic-html-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}
.empty-state-text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}
.empty-state-subtext {
    font-size: 14px;
    opacity: 0.8;
}
.deepseek-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #dee2e6;
}
.deepseek-controls .el-button-group {
    display: flex;
}
.deepseek-controls .el-button {
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}
.deepseek-controls .el-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.deepseek-controls .el-button:disabled {
    opacity: 0.6;
}
.suggested-questions {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}
.suggested-questions-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}
.suggested-questions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}
.suggested-question {
    padding: 4px 15px;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    border: 1px solid #e6f1ff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    line-height: 1.4;
}
.suggested-question:hover {
    background: linear-gradient(135deg, #e6f1ff 0%, #f0f8ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #667eea;
}
.suggested-question:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.suggested-question i {
    margin-right: 8px;
    font-size: 16px;
    color: #667eea;
}
.suggested-question:hover i {
    color: #5a6fd8;
}
/* 加载状态的建议问题样式 */
.suggested-questions .suggested-questions-title .el-icon-loading {
    margin-right: 8px;
    color: #667eea;
}
.chat-history::-webkit-scrollbar,
.chart-container::-webkit-scrollbar,
.dynamic-html-container::-webkit-scrollbar {
    width: 6px;
}
.chat-history::-webkit-scrollbar-track,
.chart-container::-webkit-scrollbar-track,
.dynamic-html-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.chat-history::-webkit-scrollbar-thumb,
.chart-container::-webkit-scrollbar-thumb,
.dynamic-html-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}
.chat-history::-webkit-scrollbar-thumb:hover,
.chart-container::-webkit-scrollbar-thumb:hover,
.dynamic-html-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    
    .chat-section {
        flex: 0 0 40vh; /* 移动端占40%视口高度 */
        height: 40vh;
    }
    
    .display-section {
        flex: 0 0 60vh; /* 移动端占60%视口高度 */
        height: 60vh;
    }
    
    .chat-content {
        max-width: 85%;
    }
    
    .data-cards-container {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 1200px) {
    .data-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}
.el-switch__label {
    font-size: 12px !important;
    font-weight: 500 !important;
}
.el-tooltip__popper {
    max-width: 200px;
}
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}
#barChart {
    width: 100%;
    height: 100%;
}
.oss-link {
    color: #409EFF;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    padding: 0 2px;
}
.oss-link:hover {
    text-decoration: underline;
    background-color: rgba(64, 158, 255, 0.1);
}
.image-preview-dialog {
    max-width: 90vw;
    max-height: 90vh;
}
.image-preview-dialog .el-message-box__content {
    text-align: center;
}
.file-upload-area {
    margin-top: 12px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #dcdfe6;
}
.selected-files {
    margin-top: 10px;
    padding: 8px;
    background-color: #f2f6fc;
    border-radius: 4px;
}
.file-list-title {
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
}
.file-tag {
    margin-right: 6px;
    margin-bottom: 6px;
}
.el-upload__tip {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
}
.loading-message {
    display: inline-flex;
    align-items: center;
    color: #409EFF;
    font-weight: 500;
}
.loading-dots {
    margin-left: 8px;
    display: inline-flex;
}
.loading-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #409EFF;
    margin: 0 2px;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dot:nth-child(3) { animation-delay: 0s; }
@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.professional-loading {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    position: relative;
    overflow: hidden;
}
.loading-icon {
    margin-bottom: 15px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.loading-subtext {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}
.loading-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: loading-progress 1.5s ease-in-out infinite;
}
@keyframes loading-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.loading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.message-text div[style*="background: #f8f9fa"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    border-left: 4px solid #667eea !important;
    margin: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}
.message-text div[style*="background: #f8f9fa"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}
.message-text div[style*="background: #f8f9fa"] strong {
    color: #667eea !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}
/* AI生成内容中的样式 */
.ai-generating-content {
    text-align: left;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #667eea;
}
.ai-generating-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.generating-icon {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.typing-dots {
    display: flex;
    gap: 4px;
    margin-right: 12px;
}
.typing-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    animation: typing 1.4s infinite ease-in-out;
}
.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}
.generating-text {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.generating-text::after {
    content: '';
    width: 4px;
    height: 16px;
    background: #667eea;
    margin-left: 8px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
.generating-subtext {
    font-size: 13px;
    color: #6c757d;
    opacity: 0.8;
    font-style: italic;
} 
// ... existing code ...
/* 打字机效果 */
.typewriter-text {
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    border-right: 2px solid #667eea;
    animation: blink-caret 0.75s step-end infinite;
    display: inline-block;
    width: 100%;
}

.typewriter-text span {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #667eea }
}

/* 为每个字符添加延迟动画 */
.typewriter-text span:nth-child(1) { animation-delay: 0.1s; }
.typewriter-text span:nth-child(2) { animation-delay: 0.2s; }
.typewriter-text span:nth-child(3) { animation-delay: 0.3s; }
.typewriter-text span:nth-child(4) { animation-delay: 0.4s; }
.typewriter-text span:nth-child(5) { animation-delay: 0.5s; }
.typewriter-text span:nth-child(6) { animation-delay: 0.6s; }
.typewriter-text span:nth-child(7) { animation-delay: 0.7s; }
.typewriter-text span:nth-child(8) { animation-delay: 0.8s; }
.typewriter-text span:nth-child(9) { animation-delay: 0.9s; }
.typewriter-text span:nth-child(10) { animation-delay: 1s; }
